﻿@model PlmPersonLeaveViewModel
@{
    Layout = null;
    ViewBag.Title = "请假监理人员请假管理管理-查看";
}
<div class="pageFormContent" layouth="58">
    <table width="98%" class="tab012">
        <tr>
            <td class="td2" colspan="4" style="background-color: #e3effc; color: #045795; font-weight: bold; border: 1px solid #bbd9f9">假条详情
            </td>
        </tr>
        <tr>
            <td class="td1" style="width: 26%">请假人：
            </td>
            <td class="td2" style="width: 24%">@(Model.PersonleaveInfo.Pl_PersonName)
            </td>
            <td class="td1" style="width: 24%">标段：
            </td>
            <td class="td2" style="width: 26%">@(Model.PersonleaveInfo.Pl_Section)
            </td>
        </tr>
        <tr>
            <td class="td1">申请时间：
            </td>
            <td class="td2">@Model.PersonleaveInfo.Pl_Time.ToString("yyyy年MM月dd日")
            </td>
            <td class="td1">顶岗人员：
            </td>
            <td class="td2">@(Model.PersonleaveInfo.Pl_CoverMan)
            </td>
        </tr>
        <tr>
            <td class="td1">请假开始时间：
            </td>
            <td class="td2">@(Model.PersonleaveInfo.Pl_StartDate.ToString("yyyy年MM月dd日"))
            </td>
            <td class="td1">请假结束时间：
            </td>
            <td class="td2">@(Model.PersonleaveInfo.Pl_EndDate.ToString("yyyy年MM月dd日"))
            </td>
        </tr>
        <tr>
            <td class="td1">请假事由：
            </td>
            <td class="td2" colspan="3">@(Model.PersonleaveInfo.Pl_Reason)
            </td>
        </tr>
        @foreach (var info in Model.TheAuditList)
        {
            <tr>
                <td class="td1">@(info.A_DepName)：
                </td>
                <td class="td2" colspan="3">@(info.A_Opinion)
                </td>
            </tr>
        }
        <tr>
            <td class="td1">审批流程：
            </td>
            @* 审批状态(0=草稿，1=驻地/检测主任审批，2=总监审批，3=质监部部长批示，4=主管领导批示，5=审批通过，6=审批不通过)
            请假类型（0=员工请假，1=主任请假）*@
            @{int type = 0;
              if (Model.PersonleaveInfo.Pl_Section.IndexOf("ZJ") > 0)
              {
                  type = 1;
              }
              if (Model.PersonleaveInfo.Pl_Type)
              {
                  type = 2;
              }
            }
            @*type(0=普通人员请假，1=总监办人员请假，2=主任请假)*@
            <td class="td2" colspan="3">@*@(type)@(Model.PersonleaveInfo.Pl_State)*@
                <a href="@Url.Action("ApprovalProcessImage", "PlmPersonLeave", new { type = type, state = Model.PersonleaveInfo.Pl_State })" mask="true" target="dialog" width="425" height="600" title="点击查看当前审批步骤" style="color: blue; line-height: 25px;">查看当前审批步骤</a>
            </td>
        </tr>
        <tr>
            <td class="td1">备注：
            </td>
            <td class="td2" colspan="3">@(Model.PersonleaveInfo.Pl_Remark)
            </td>
        </tr>

    </table>
</div>
<div class="formBar">
    <ul>
        <li>
            <button type="button" class="close btn btn-default btn-sm">
                关闭</button>
        </li>
    </ul>
</div>
